package com.fortune.vo.cOrderMgt;

import com.fortune.constants.enums.*;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * TODO c_order_base_info
 * @author ran
 *
 */
public class COrderDetails {
    @ApiModelProperty(example="订单id")
    private String id;
    @ApiModelProperty(example="客户名称")
    private String name;
    @ApiModelProperty(example="联系人手机号码")
    private String principalPhone;
    @ApiModelProperty(example="订单编号")
    private String no;
    @ApiModelProperty(example="开单日期")
    private Date createTime;
    @ApiModelProperty(example="开单方(JXS经销商,KH客户)")
    private OrderCreat createType;
    @ApiModelProperty(example="开单人")
    private String createUser;
    @ApiModelProperty(example="是否已交账")
    private AccountInfoEnum account;
    @ApiModelProperty(example="交账日期")
    private Date accountTime;

    @ApiModelProperty(example="商品总金额")
    private BigDecimal pTotalPrice;
    @ApiModelProperty(example="押金总金额")
    private BigDecimal dTotalPrice;
    @ApiModelProperty(example="是否已付款")
    private OrderOther pay;
    @ApiModelProperty(example="付款金额")
    private BigDecimal allPay;
    @ApiModelProperty(example="付款日期")
    private Date payTime;
    @ApiModelProperty(example="付款方式")
    private String payType;
    @ApiModelProperty(example="收款人")
    private String payeeUser;

    @ApiModelProperty(example="是否批准发货")
    private Approve approve;
    @ApiModelProperty(example="发货批准人")
    private String shipUser;
    @ApiModelProperty(example="发货批准日期")
    private Date shipTime;
    @ApiModelProperty(example="发货仓库")
    private String shipStore;
    @ApiModelProperty(example="送货司机")
    private String deliveryUser;
    @ApiModelProperty(example="是否已送达")
    private Delivery delivery;
    @ApiModelProperty(example="送达日期")
    private Date deliveryTime;
    @ApiModelProperty(example="数量总计")
    private int count;
    private List<COrderDetailsProduce> produces;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPrincipalPhone() {
        return principalPhone;
    }

    public void setPrincipalPhone(String principalPhone) {
        this.principalPhone = principalPhone;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public OrderCreat getCreateType() {
        return createType;
    }

    public void setCreateType(OrderCreat createType) {
        this.createType = createType;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public AccountInfoEnum getAccount() {
        return account;
    }

    public void setAccount(AccountInfoEnum account) {
        this.account = account;
    }

    public Date getAccountTime() {
        return accountTime;
    }

    public void setAccountTime(Date accountTime) {
        this.accountTime = accountTime;
    }

    public BigDecimal getpTotalPrice() {
        return pTotalPrice;
    }

    public void setpTotalPrice(BigDecimal pTotalPrice) {
        this.pTotalPrice = pTotalPrice;
    }

    public BigDecimal getdTotalPrice() {
        return dTotalPrice;
    }

    public void setdTotalPrice(BigDecimal dTotalPrice) {
        this.dTotalPrice = dTotalPrice;
    }

    public OrderOther getPay() {
        return pay;
    }

    public void setPay(OrderOther pay) {
        this.pay = pay;
    }

    public BigDecimal getAllPay() {
        return allPay;
    }

    public void setAllPay(BigDecimal allPay) {
        this.allPay = allPay;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

    public String getPayeeUser() {
        return payeeUser;
    }

    public void setPayeeUser(String payeeUser) {
        this.payeeUser = payeeUser;
    }

    public Approve getApprove() {
        return approve;
    }

    public void setApprove(Approve approve) {
        this.approve = approve;
    }

    public String getShipUser() {
        return shipUser;
    }

    public void setShipUser(String shipUser) {
        this.shipUser = shipUser;
    }

    public Date getShipTime() {
        return shipTime;
    }

    public void setShipTime(Date shipTime) {
        this.shipTime = shipTime;
    }

    public String getShipStore() {
        return shipStore;
    }

    public void setShipStore(String shipStore) {
        this.shipStore = shipStore;
    }

    public String getDeliveryUser() {
        return deliveryUser;
    }

    public void setDeliveryUser(String deliveryUser) {
        this.deliveryUser = deliveryUser;
    }

    public Delivery getDelivery() {
        return delivery;
    }

    public void setDelivery(Delivery delivery) {
        this.delivery = delivery;
    }

    public Date getDeliveryTime() {
        return deliveryTime;
    }

    public void setDeliveryTime(Date deliveryTime) {
        this.deliveryTime = deliveryTime;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public List<COrderDetailsProduce> getProduces() {
        return produces;
    }

    public void setProduces(List<COrderDetailsProduce> produces) {
        this.produces = produces;
    }

    @Override
    public String toString() {
        return "COrderDetails{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", principalPhone='" + principalPhone + '\'' +
                ", no='" + no + '\'' +
                ", createTime=" + createTime +
                ", createType=" + createType +
                ", createUser='" + createUser + '\'' +
                ", account=" + account +
                ", accountTime=" + accountTime +
                ", pTotalPrice=" + pTotalPrice +
                ", dTotalPrice=" + dTotalPrice +
                ", pay=" + pay +
                ", allPay=" + allPay +
                ", payTime=" + payTime +
                ", payType='" + payType + '\'' +
                ", payeeUser='" + payeeUser + '\'' +
                ", approve=" + approve +
                ", shipUser='" + shipUser + '\'' +
                ", shipTime=" + shipTime +
                ", shipStore='" + shipStore + '\'' +
                ", deliveryUser='" + deliveryUser + '\'' +
                ", delivery=" + delivery +
                ", deliveryTime=" + deliveryTime +
                ", count=" + count +
                ", produces=" + produces +
                '}';
    }
}
